package autoteam.ui.dialogs.profiles;

import javax.swing.JLabel;

import db.DBRecord;

/*
 * CoachProfile: creates a default pop up frame which serves as a profile for coaches
 */
public class CoachProfile extends ProfilePanel
{
    private static final long serialVersionUID = -8768261266560598030L;
    
    private JLabel coachLabel;
    private JLabel teamLabel;
    private JLabel sportLabel;
    private JLabel leagueLabel;

    public CoachProfile( DBRecord record )
    {
        super( record );

        String coachName = 
            record.getFieldValue( "firstname" ).toString( ) + 
            record.getFieldValue( "lastname" ).toString( ) ;
        
        // String teamName = record.getFieldValue( "teamName" ).toString( );
        
        String picPath = record.getFieldValue( "picturepath" ).toString( );
        String biographyText = record.getFieldValue( "biography" ).toString( );
        
        this.setBiography( biographyText, ProfilePanel.defaultFont, !editable );
        this.changeProfilePic( picPath );
        
        this.setName( coachName );
        
        coachLabel = new JLabel( coachName );
        // teamLabel = new JLabel( teamName );
        sportLabel = new JLabel( );
        leagueLabel = new JLabel( );
        
        this.add( coachLabel );
        // this.add( teamLabel );
        this.add( sportLabel );
        this.add( leagueLabel );
    }
    
    @ Override
    public void setBounds( )
    {
        
        
    }
    
}// End of class
